﻿using System;
using System.Diagnostics;
using System.IO;
using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.FieldAccess;

namespace com.gexin.rp.sdk.dto
{
	// Token: 0x02000015 RID: 21
	[DebuggerNonUserCode]
	public sealed class StopBatchTaskResult : GeneratedMessage<StopBatchTaskResult, StopBatchTaskResult.Builder>
	{
		// Token: 0x060001F8 RID: 504 RVA: 0x000052A7 File Offset: 0x000034A7
		private StopBatchTaskResult()
		{
		}

		// Token: 0x170000CF RID: 207
		// (get) Token: 0x060001F9 RID: 505 RVA: 0x000052CC File Offset: 0x000034CC
		public static StopBatchTaskResult DefaultInstance
		{
			get
			{
				return StopBatchTaskResult.defaultInstance;
			}
		}

		// Token: 0x170000D0 RID: 208
		// (get) Token: 0x060001FA RID: 506 RVA: 0x000052D3 File Offset: 0x000034D3
		public override StopBatchTaskResult DefaultInstanceForType
		{
			get
			{
				return StopBatchTaskResult.DefaultInstance;
			}
		}

		// Token: 0x170000D1 RID: 209
		// (get) Token: 0x060001FB RID: 507 RVA: 0x00002579 File Offset: 0x00000779
		protected override StopBatchTaskResult ThisMessage
		{
			get
			{
				return this;
			}
		}

		// Token: 0x170000D2 RID: 210
		// (get) Token: 0x060001FC RID: 508 RVA: 0x000052DA File Offset: 0x000034DA
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_StopBatchTaskResult__Descriptor;
			}
		}

		// Token: 0x170000D3 RID: 211
		// (get) Token: 0x060001FD RID: 509 RVA: 0x000052E1 File Offset: 0x000034E1
		protected override FieldAccessorTable<StopBatchTaskResult, StopBatchTaskResult.Builder> InternalFieldAccessors
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_StopBatchTaskResult__FieldAccessorTable;
			}
		}

		// Token: 0x170000D4 RID: 212
		// (get) Token: 0x060001FE RID: 510 RVA: 0x000052E8 File Offset: 0x000034E8
		public bool HasResult
		{
			get
			{
				return this.hasResult;
			}
		}

		// Token: 0x170000D5 RID: 213
		// (get) Token: 0x060001FF RID: 511 RVA: 0x000052F0 File Offset: 0x000034F0
		public bool Result
		{
			get
			{
				return this.result_;
			}
		}

		// Token: 0x170000D6 RID: 214
		// (get) Token: 0x06000200 RID: 512 RVA: 0x000052F8 File Offset: 0x000034F8
		public bool HasInfo
		{
			get
			{
				return this.hasInfo;
			}
		}

		// Token: 0x170000D7 RID: 215
		// (get) Token: 0x06000201 RID: 513 RVA: 0x00005300 File Offset: 0x00003500
		public string Info
		{
			get
			{
				return this.info_;
			}
		}

		// Token: 0x170000D8 RID: 216
		// (get) Token: 0x06000202 RID: 514 RVA: 0x00005308 File Offset: 0x00003508
		public bool HasSeqId
		{
			get
			{
				return this.hasSeqId;
			}
		}

		// Token: 0x170000D9 RID: 217
		// (get) Token: 0x06000203 RID: 515 RVA: 0x00005310 File Offset: 0x00003510
		public string SeqId
		{
			get
			{
				return this.seqId_;
			}
		}

		// Token: 0x170000DA RID: 218
		// (get) Token: 0x06000204 RID: 516 RVA: 0x00005318 File Offset: 0x00003518
		public override bool IsInitialized
		{
			get
			{
				return this.hasResult;
			}
		}

		// Token: 0x06000205 RID: 517 RVA: 0x00005328 File Offset: 0x00003528
		public override void WriteTo(ICodedOutputStream output)
		{
			this.CalcSerializedSize();
			string[] stopBatchTaskResultFieldNames = StopBatchTaskResult._stopBatchTaskResultFieldNames;
			if (this.hasResult)
			{
				output.WriteBool(1, stopBatchTaskResultFieldNames[1], this.Result);
			}
			if (this.hasInfo)
			{
				output.WriteString(2, stopBatchTaskResultFieldNames[0], this.Info);
			}
			if (this.hasSeqId)
			{
				output.WriteString(3, stopBatchTaskResultFieldNames[2], this.SeqId);
			}
			this.UnknownFields.WriteTo(output);
		}

		// Token: 0x170000DB RID: 219
		// (get) Token: 0x06000206 RID: 518 RVA: 0x00005398 File Offset: 0x00003598
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				return this.CalcSerializedSize();
			}
		}

		// Token: 0x06000207 RID: 519 RVA: 0x000053B8 File Offset: 0x000035B8
		private int CalcSerializedSize()
		{
			int num = this.memoizedSerializedSize;
			if (num != -1)
			{
				return num;
			}
			num = 0;
			if (this.hasResult)
			{
				num += CodedOutputStream.ComputeBoolSize(1, this.Result);
			}
			if (this.hasInfo)
			{
				num += CodedOutputStream.ComputeStringSize(2, this.Info);
			}
			if (this.hasSeqId)
			{
				num += CodedOutputStream.ComputeStringSize(3, this.SeqId);
			}
			num += this.UnknownFields.SerializedSize;
			this.memoizedSerializedSize = num;
			return num;
		}

		// Token: 0x06000208 RID: 520 RVA: 0x0000542F File Offset: 0x0000362F
		public static StopBatchTaskResult ParseFrom(ByteString data)
		{
			return StopBatchTaskResult.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x06000209 RID: 521 RVA: 0x00005441 File Offset: 0x00003641
		public static StopBatchTaskResult ParseFrom(ByteString data, ExtensionRegistry extensionRegistry)
		{
			return StopBatchTaskResult.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x0600020A RID: 522 RVA: 0x00005454 File Offset: 0x00003654
		public static StopBatchTaskResult ParseFrom(byte[] data)
		{
			return StopBatchTaskResult.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x0600020B RID: 523 RVA: 0x00005466 File Offset: 0x00003666
		public static StopBatchTaskResult ParseFrom(byte[] data, ExtensionRegistry extensionRegistry)
		{
			return StopBatchTaskResult.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x0600020C RID: 524 RVA: 0x00005479 File Offset: 0x00003679
		public static StopBatchTaskResult ParseFrom(Stream input)
		{
			return StopBatchTaskResult.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x0600020D RID: 525 RVA: 0x0000548B File Offset: 0x0000368B
		public static StopBatchTaskResult ParseFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return StopBatchTaskResult.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x0600020E RID: 526 RVA: 0x0000549E File Offset: 0x0000369E
		public static StopBatchTaskResult ParseDelimitedFrom(Stream input)
		{
			return StopBatchTaskResult.CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
		}

		// Token: 0x0600020F RID: 527 RVA: 0x000054B0 File Offset: 0x000036B0
		public static StopBatchTaskResult ParseDelimitedFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return StopBatchTaskResult.CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000210 RID: 528 RVA: 0x000054C3 File Offset: 0x000036C3
		public static StopBatchTaskResult ParseFrom(ICodedInputStream input)
		{
			return StopBatchTaskResult.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x06000211 RID: 529 RVA: 0x000054D5 File Offset: 0x000036D5
		public static StopBatchTaskResult ParseFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
		{
			return StopBatchTaskResult.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000212 RID: 530 RVA: 0x00002579 File Offset: 0x00000779
		private StopBatchTaskResult MakeReadOnly()
		{
			return this;
		}

		// Token: 0x06000213 RID: 531 RVA: 0x000054E8 File Offset: 0x000036E8
		public static StopBatchTaskResult.Builder CreateBuilder()
		{
			return new StopBatchTaskResult.Builder();
		}

		// Token: 0x06000214 RID: 532 RVA: 0x000054EF File Offset: 0x000036EF
		public override StopBatchTaskResult.Builder ToBuilder()
		{
			return StopBatchTaskResult.CreateBuilder(this);
		}

		// Token: 0x06000215 RID: 533 RVA: 0x000054E8 File Offset: 0x000036E8
		public override StopBatchTaskResult.Builder CreateBuilderForType()
		{
			return new StopBatchTaskResult.Builder();
		}

		// Token: 0x06000216 RID: 534 RVA: 0x000054F7 File Offset: 0x000036F7
		public static StopBatchTaskResult.Builder CreateBuilder(StopBatchTaskResult prototype)
		{
			return new StopBatchTaskResult.Builder(prototype);
		}

		// Token: 0x06000217 RID: 535 RVA: 0x00005500 File Offset: 0x00003700
		static StopBatchTaskResult()
		{
			FileDescriptor descriptor = GtReq.Descriptor;
		}

		// Token: 0x0400011D RID: 285
		private static readonly StopBatchTaskResult defaultInstance = new StopBatchTaskResult().MakeReadOnly();

		// Token: 0x0400011E RID: 286
		private static readonly string[] _stopBatchTaskResultFieldNames = new string[]
		{
			"info",
			"result",
			"seqId"
		};

		// Token: 0x0400011F RID: 287
		private static readonly uint[] _stopBatchTaskResultFieldTags = new uint[]
		{
			18u,
			8u,
			26u
		};

		// Token: 0x04000120 RID: 288
		public const int ResultFieldNumber = 1;

		// Token: 0x04000121 RID: 289
		private bool hasResult;

		// Token: 0x04000122 RID: 290
		private bool result_;

		// Token: 0x04000123 RID: 291
		public const int InfoFieldNumber = 2;

		// Token: 0x04000124 RID: 292
		private bool hasInfo;

		// Token: 0x04000125 RID: 293
		private string info_ = "";

		// Token: 0x04000126 RID: 294
		public const int SeqIdFieldNumber = 3;

		// Token: 0x04000127 RID: 295
		private bool hasSeqId;

		// Token: 0x04000128 RID: 296
		private string seqId_ = "";

		// Token: 0x04000129 RID: 297
		private int memoizedSerializedSize = -1;

		// Token: 0x02000061 RID: 97
		[DebuggerNonUserCode]
		public sealed class Builder : GeneratedBuilder<StopBatchTaskResult, StopBatchTaskResult.Builder>
		{
			// Token: 0x17000316 RID: 790
			// (get) Token: 0x0600079F RID: 1951 RVA: 0x00002579 File Offset: 0x00000779
			protected override StopBatchTaskResult.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}

			// Token: 0x060007A0 RID: 1952 RVA: 0x00012163 File Offset: 0x00010363
			public Builder()
			{
				this.result = StopBatchTaskResult.DefaultInstance;
				this.resultIsReadOnly = true;
			}

			// Token: 0x060007A1 RID: 1953 RVA: 0x0001217D File Offset: 0x0001037D
			internal Builder(StopBatchTaskResult cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}

			// Token: 0x060007A2 RID: 1954 RVA: 0x00012194 File Offset: 0x00010394
			private StopBatchTaskResult PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					StopBatchTaskResult other = this.result;
					this.result = new StopBatchTaskResult();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}

			// Token: 0x17000317 RID: 791
			// (get) Token: 0x060007A3 RID: 1955 RVA: 0x000121D0 File Offset: 0x000103D0
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}

			// Token: 0x17000318 RID: 792
			// (get) Token: 0x060007A4 RID: 1956 RVA: 0x000121DD File Offset: 0x000103DD
			protected override StopBatchTaskResult MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}

			// Token: 0x060007A5 RID: 1957 RVA: 0x000121E5 File Offset: 0x000103E5
			public override StopBatchTaskResult.Builder Clear()
			{
				this.result = StopBatchTaskResult.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}

			// Token: 0x060007A6 RID: 1958 RVA: 0x000121FA File Offset: 0x000103FA
			public override StopBatchTaskResult.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new StopBatchTaskResult.Builder(this.result);
				}
				return new StopBatchTaskResult.Builder().MergeFrom(this.result);
			}

			// Token: 0x17000319 RID: 793
			// (get) Token: 0x060007A7 RID: 1959 RVA: 0x00012220 File Offset: 0x00010420
			public override MessageDescriptor DescriptorForType
			{
				get
				{
					return StopBatchTaskResult.Descriptor;
				}
			}

			// Token: 0x1700031A RID: 794
			// (get) Token: 0x060007A8 RID: 1960 RVA: 0x000052D3 File Offset: 0x000034D3
			public override StopBatchTaskResult DefaultInstanceForType
			{
				get
				{
					return StopBatchTaskResult.DefaultInstance;
				}
			}

			// Token: 0x060007A9 RID: 1961 RVA: 0x00012227 File Offset: 0x00010427
			public override StopBatchTaskResult BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}

			// Token: 0x060007AA RID: 1962 RVA: 0x0001224A File Offset: 0x0001044A
			public override StopBatchTaskResult.Builder MergeFrom(IMessage other)
			{
				if (other is StopBatchTaskResult)
				{
					return this.MergeFrom((StopBatchTaskResult)other);
				}
				base.MergeFrom(other);
				return this;
			}

			// Token: 0x060007AB RID: 1963 RVA: 0x0001226C File Offset: 0x0001046C
			public override StopBatchTaskResult.Builder MergeFrom(StopBatchTaskResult other)
			{
				if (other == StopBatchTaskResult.DefaultInstance)
				{
					return this;
				}
				this.PrepareBuilder();
				if (other.HasResult)
				{
					this.Result = other.Result;
				}
				if (other.HasInfo)
				{
					this.Info = other.Info;
				}
				if (other.HasSeqId)
				{
					this.SeqId = other.SeqId;
				}
				this.MergeUnknownFields(other.UnknownFields);
				return this;
			}

			// Token: 0x060007AC RID: 1964 RVA: 0x000122D4 File Offset: 0x000104D4
			public override StopBatchTaskResult.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}

			// Token: 0x060007AD RID: 1965 RVA: 0x000122E4 File Offset: 0x000104E4
			public override StopBatchTaskResult.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				UnknownFieldSet.Builder builder = null;
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(StopBatchTaskResult._stopBatchTaskResultFieldNames, text, StringComparer.Ordinal);
						if (num2 < 0)
						{
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
							continue;
						}
						num = StopBatchTaskResult._stopBatchTaskResultFieldTags[num2];
					}
					if (num <= 8u)
					{
						if (num == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num == 8u)
						{
							this.result.hasResult = input.ReadBool(ref this.result.result_);
							continue;
						}
					}
					else
					{
						if (num == 18u)
						{
							this.result.hasInfo = input.ReadString(ref this.result.info_);
							continue;
						}
						if (num == 26u)
						{
							this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						if (builder != null)
						{
							this.UnknownFields = builder.Build();
						}
						return this;
					}
					if (builder == null)
					{
						builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
					}
					this.ParseUnknownField(input, builder, extensionRegistry, num, text);
				}
				if (builder != null)
				{
					this.UnknownFields = builder.Build();
				}
				return this;
			}

			// Token: 0x1700031B RID: 795
			// (get) Token: 0x060007AE RID: 1966 RVA: 0x00012410 File Offset: 0x00010610
			public bool HasResult
			{
				get
				{
					return this.result.hasResult;
				}
			}

			// Token: 0x1700031C RID: 796
			// (get) Token: 0x060007AF RID: 1967 RVA: 0x0001241D File Offset: 0x0001061D
			// (set) Token: 0x060007B0 RID: 1968 RVA: 0x0001242A File Offset: 0x0001062A
			public bool Result
			{
				get
				{
					return this.result.Result;
				}
				set
				{
					this.SetResult(value);
				}
			}

			// Token: 0x060007B1 RID: 1969 RVA: 0x00012434 File Offset: 0x00010634
			public StopBatchTaskResult.Builder SetResult(bool value)
			{
				this.PrepareBuilder();
				this.result.hasResult = true;
				this.result.result_ = value;
				return this;
			}

			// Token: 0x060007B2 RID: 1970 RVA: 0x00012456 File Offset: 0x00010656
			public StopBatchTaskResult.Builder ClearResult()
			{
				this.PrepareBuilder();
				this.result.hasResult = false;
				this.result.result_ = false;
				return this;
			}

			// Token: 0x1700031D RID: 797
			// (get) Token: 0x060007B3 RID: 1971 RVA: 0x00012478 File Offset: 0x00010678
			public bool HasInfo
			{
				get
				{
					return this.result.hasInfo;
				}
			}

			// Token: 0x1700031E RID: 798
			// (get) Token: 0x060007B4 RID: 1972 RVA: 0x00012485 File Offset: 0x00010685
			// (set) Token: 0x060007B5 RID: 1973 RVA: 0x00012492 File Offset: 0x00010692
			public string Info
			{
				get
				{
					return this.result.Info;
				}
				set
				{
					this.SetInfo(value);
				}
			}

			// Token: 0x060007B6 RID: 1974 RVA: 0x0001249C File Offset: 0x0001069C
			public StopBatchTaskResult.Builder SetInfo(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasInfo = true;
				this.result.info_ = value;
				return this;
			}

			// Token: 0x060007B7 RID: 1975 RVA: 0x000124C9 File Offset: 0x000106C9
			public StopBatchTaskResult.Builder ClearInfo()
			{
				this.PrepareBuilder();
				this.result.hasInfo = false;
				this.result.info_ = "";
				return this;
			}

			// Token: 0x1700031F RID: 799
			// (get) Token: 0x060007B8 RID: 1976 RVA: 0x000124EF File Offset: 0x000106EF
			public bool HasSeqId
			{
				get
				{
					return this.result.hasSeqId;
				}
			}

			// Token: 0x17000320 RID: 800
			// (get) Token: 0x060007B9 RID: 1977 RVA: 0x000124FC File Offset: 0x000106FC
			// (set) Token: 0x060007BA RID: 1978 RVA: 0x00012509 File Offset: 0x00010709
			public string SeqId
			{
				get
				{
					return this.result.SeqId;
				}
				set
				{
					this.SetSeqId(value);
				}
			}

			// Token: 0x060007BB RID: 1979 RVA: 0x00012513 File Offset: 0x00010713
			public StopBatchTaskResult.Builder SetSeqId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSeqId = true;
				this.result.seqId_ = value;
				return this;
			}

			// Token: 0x060007BC RID: 1980 RVA: 0x00012540 File Offset: 0x00010740
			public StopBatchTaskResult.Builder ClearSeqId()
			{
				this.PrepareBuilder();
				this.result.hasSeqId = false;
				this.result.seqId_ = "";
				return this;
			}

			// Token: 0x04000359 RID: 857
			private bool resultIsReadOnly;

			// Token: 0x0400035A RID: 858
			private StopBatchTaskResult result;
		}
	}
}
